package com.northone.statistics;

import com.northone.statistics.database.DatabaseManager;
import com.northone.statistics.database.SaintDataBaseHelper;

import android.app.Application;
import android.database.sqlite.SQLiteDatabase;

public class MyApplication extends Application {
	public SQLiteDatabase database;
	@Override
	public void onCreate() {
		SaintDataBaseHelper saintDB = new SaintDataBaseHelper(this);
//		database = saintDB.getWritableDatabase();
		
		DatabaseManager.initializeInstance(saintDB);
		
		database = DatabaseManager.getInstance().openDatabase();
		
	}
	
	public void exit(){
		database.close();
	}
}
